home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1993 / MacHack 1993.toast / MacHack™ 1987-1992 / MacHack™ '90 / Utilities ƒ / MPW Tools ƒ / mpw mem script < prev    next >
Encoding:
Text File  |  1989-05-01  |  5.3 KB  |  427 lines  |  [TEXT/WORD]

  1.    Here is a nice little script that will that will tell you if a toolbox 
  2. routine moves memory. The script should be pasted into your UserStartUp file,
  3. and the Routines file should be placed in the MPW folder.
  4.    To use the script select the procedure in question and type command-P. If 
  5. the procedure does move memory the script will put up an alert. If it does not
  6. move memory the script will generate a beep.
  7.     I have the old phone book edition of Inside Mac Vol 1-3. It doesn't have
  8. the list of routines that the new edition has. I didn't want to pay 20 dollars
  9. for the new Vol 3 so I just copied the most common routines while at the
  10. bookstore. If someone wants to type in and upload the complete list I would
  11. sure appreciate it.
  12.  
  13.     Jesse Jones
  14.     
  15.  
  16. AddMenu Find 'Moves Memory/P' ∂
  17.     'BEGIN; ∂
  18.         Set Exit 0; ∂
  19.         Set ProcName `Catenate "{Active}.§"`; ∂
  20.         search -i -q /•{ProcName}∞/ {MPW}Routines > Dev:Null ≥ Dev:Null; ∂
  21.         IF {Status} == 0; ∂
  22.             Alert "{ProcName} Moves Memory!"; ∂
  23.         ELSE; ∂
  24.             Beep; ∂
  25.         END; ∂
  26.         Set Exit 1; ∂
  27.     END'
  28.  
  29. AddResMenu                Inside Mac Vol 1 (Partial)
  30. Alert
  31. AppendMenu
  32. BeginUpdate
  33. BringToFront
  34. Button
  35. CautionAlert
  36. CharWidth
  37. CheckItem
  38. CheckUpdate
  39. ClipRect
  40. CloseDialog
  41. ClosePicture
  42. ClosePoly
  43. ClosePort
  44. CloseRgn
  45. CloseWindow
  46. CopyBits
  47. CopyRgn
  48. DisposDialog
  49. DisposeDialog
  50. DisposeControl
  51. DisposeMenu
  52. DisposeRgn
  53. DisposeWindow
  54. DisposHandle
  55. DisposeHandle
  56. DisposPtr
  57. DisposePtr
  58. DrawWindow
  59. DrawChar
  60. DrawDialog
  61. DrawGrowIcon
  62. DrawMenuBar
  63. DrawNew
  64. DrawPicture
  65. DrawString
  66. DrawText
  67. EmptyHandle
  68. EndUpdate
  69. EventAvail
  70. FindControl
  71. GetClip
  72. GetCursor
  73. GetDItem
  74. GetFontInfo
  75. GetIcon
  76. GetIndPattern
  77. GetIndResource
  78. GetIndString
  79. GetMenu
  80. GetMenuBar
  81. GetMouse
  82. GetNewControl
  83. GetNewDialog
  84. GetNewMBar
  85. GetNewWindow
  86. GetNextEvent
  87. GetPattern
  88. GetPicture
  89. GetResource
  90. GetScrap
  91. GetString
  92. GrowWindow
  93. HandAndHand
  94. HandToHand
  95. HideControl
  96. HideWindow
  97. HiliteControl
  98. HiliteMenu
  99. HiliteWindow
  100. InsertMenu
  101. InsetRgn
  102. InvalRect
  103. KillControls
  104. KillPicture
  105. KillPoly
  106. Line
  107. LineTo
  108. MenuKey
  109. MenuSelect
  110. ModalDialog
  111. MoveControl
  112. MoveWindow
  113. NewControl
  114. NewDialog
  115. NewHandle
  116. NewMenu
  117. NewPtr
  118. NewRgn
  119. NewString
  120. NewWindow
  121. NoteAlert
  122. NumToString
  123. OpenDeskAcc
  124. OpenPicture
  125. OpenPoly
  126. OpenPort
  127. OpenRgn
  128. ParamText
  129. ScrollRect
  130. SectRect
  131. SelectWindow
  132. SelIText
  133. SetClip
  134. SetCTitle
  135. SetCtlMax
  136. SetCtlMin
  137. SetCtlValue
  138. SetDItem
  139. SetItem
  140. SetIText
  141. SetWTitle
  142. ShowControl
  143. ShowHide
  144. ShowWindow
  145. SizeControl
  146. SizeWindow
  147. StopAlert
  148. StringToNum
  149. SysBeep
  150. SystemClick
  151. SystemEdit
  152. SystemMenu
  153. TEActivate
  154. TEDeActivate
  155. TEClick
  156. TEGetText
  157. TEIdle
  158. TESetText
  159. TECopy
  160. TECut
  161. TEPaste
  162. TEDelete
  163. TEInsert
  164. TEDispose
  165. TEKey
  166. TEnew
  167. TEScroll
  168. TestControl
  169. TEUpdate
  170. TextBox
  171. TextWidth
  172. TrackControl
  173. TrackGoAway
  174. UnionRgn
  175. ValidRect
  176. ValidRgn
  177. WaitMouseUp
  178.  
  179. DelMenuItem                Inside Mac Vol 4
  180. Draw1Control
  181. FindDItem
  182. FontMetrics
  183. Get1IndResource
  184. Get1IndType
  185. Get1NamedResource
  186. Get1Resource
  187. HideDItem
  188. InsMenuItem
  189. MeasureText
  190. MoveHHi
  191. NewEmptyHandle
  192. OpenRFPerm
  193. PStr2Dec
  194. Dec2Str
  195. CStr2Dec
  196. ShowDItem
  197. TEAutoView
  198. TEPinScroll
  199. TESelView
  200. TrackBox
  201. UpdtControl
  202. UpdtDialog
  203. ZoomWindow
  204.                 
  205. ActivatePalette                Inside Mac Vol 5
  206. ADBReInit
  207. AddComp
  208. AddSearch
  209. AllocCrsr
  210. BackColor
  211. BackPat
  212. BackPixPat
  213. Char2Pixel
  214. CharWidth
  215. ClipRect
  216. CloseCPort
  217. CMY2RGB
  218. Color2Index
  219. CopyMask
  220. CopyPalette
  221. CopyRgn
  222. CTab2Palette
  223. DelComp
  224. DelMCEntries
  225. DelSearch
  226. DiffRgn
  227. DispMCInfo
  228. DisposCIcon
  229. DisposeCIcon
  230. DisposCTable
  231. DisposeCTable
  232. DisposePalette
  233. DisposeRgn
  234. DisposGDevice
  235. DisposeGDevice
  236. DisposePixMap
  237. DisposPixMap
  238. DisposePixMap
  239. DisposPixPat
  240. DisposePixPat
  241. DrawChar
  242. DrawJust
  243. DrawPicture
  244. DrawString
  245. DrawText
  246. EraseArc
  247. EraseOval
  248. ErasePalette
  249. Erasepoly
  250. EraseRect
  251. EraseRgn
  252. EraseRoundRect
  253. FillArc
  254. FillCArc
  255. FillCOval
  256. FillCPoly
  257. FillCRect
  258. FillCRgn
  259. FillCRoundRect
  260. FillOval
  261. FillPoly
  262. FillRect
  263. FillRgn
  264. FillRoundRect
  265. FindWord
  266. Fix2SmallFract
  267. FMSwapFont
  268. Font2Script
  269. FontScript
  270. ForeColor
  271. FrameArc
  272. FrameOval
  273. FramePoly
  274. FrameRect
  275. FrameRgn
  276. FrameRoundRect
  277. GetAuxCtl
  278. GetCCursor
  279. GetCIcon
  280. GetColor
  281. GetCTable
  282. GetFontInfo
  283. GetGrayRgn
  284. GetMCInfo
  285. GetNewCWindow
  286. GetNewPalette
  287. GetPixPat
  288. GetStylHandle
  289. GetStylScrap
  290. GetSubTable
  291. HiliteText
  292. HSL2RGB
  293. HSV2RGB
  294. InitCPort
  295. InitGDevice
  296. InitGraf
  297. InitPalettes
  298. InitPort
  299. InitPRAMRecs
  300. InitProcMenu
  301. InitSDeclMgr
  302. InitsRsrcTable
  303. InitRsrcTable
  304. InsetRgn
  305. IntlScript
  306. InvertArc
  307. InvertOval
  308. InvertPoly
  309. InvertRect
  310. InvertRgn
  311. InvertRoundRect
  312. KeyScript
  313. KillPicture
  314. KillPoly
  315. Line
  316. LineTo
  317. MakeITable
  318. MapRgn
  319. MeasureJust
  320. MeasureText
  321. NewCDialog
  322. NewCWindow
  323. NewGDevice
  324. NewPalette
  325. NewPixMap
  326. NewPixPat
  327. NewPort
  328. NewRgn
  329. OpenCPicture
  330. OpenCPort
  331. OpenPicture
  332. OpenPixMap
  333. OpenPoly
  334. OpenPort
  335. OpenRgn
  336. PaintArc
  337. PaintOval
  338. PaintPoly
  339. PaintRect
  340. PaintRgn
  341. PaintRoundRect
  342. Palette2CTab
  343. PenNormal
  344. PenPat
  345. PenPixPat
  346. Pixel2Char
  347. PlotCIcon
  348. PMBackColor
  349. PMForeColor
  350. PopUpMenuSelect
  351. PrClose
  352. PrCloseDoc
  353. PrClosePage
  354. PrCtlCall
  355. PrDrvrClose
  356. PrDrvrDCE
  357. PrDrvrOpen
  358. PrDrvrVers
  359. PrError
  360. PrGeneral
  361. PrintDefault
  362. PrJobDialog
  363. PrJobMerge
  364. PrOpen
  365. PrOpenDoc
  366. PrOpenPage
  367. PrPicFile
  368. PrSetError
  369. PrStlDialog
  370. PrStylDialog
  371. PrValidate
  372. RealColor
  373. RGB2CMY
  374. RGB2HSL
  375. RGB2HSV
  376. RGBBackColor
  377. RGBForeColor
  378. RGetResource
  379. ScrollRect
  380. SectRgn
  381. SetCCursor
  382. SetCPixel
  383. SetCtlColor
  384. SetDeskCPat
  385. SetEmptyRgn
  386. SetMCEntries
  387. SetMCInfo
  388. SetRectRgn
  389. SetStylHandle
  390. SetWinColor
  391. sExec
  392. sGetBlock
  393. sGetcString
  394. sGetDriver
  395. ShutDwnInstall
  396. ShutDwnRemove
  397. SmallFract2Fix
  398. SndAddModifier
  399. SndDisposeChannel
  400. SndNewChannel
  401. sPrimaryInit
  402. StdArc
  403. StdBits
  404. StdComment
  405. StdLine
  406. StdOval
  407. StdPoly
  408. StdPutPic
  409. StdRect
  410. StdRgn
  411. StdRRect
  412. StdText
  413. StdTxMeas
  414. StringWidth
  415. TEGetHeight
  416. TEGetOffset
  417. TEGetPoint
  418. TEGetStyle
  419. TEReplaceStyle
  420. TESetStyle
  421. SetStylInsert
  422. TEStylNew
  423. TEStylPaste
  424. TextWidth
  425. Transliterate
  426. UnionRgn
  427. XorRgn